function checkVersion(e,a){e[0]>a[0]?changeMemory(CONFIG.updateAvailable,!0):e[1]>a[1]?changeMemory(CONFIG.updateAvailable,!0):e[2]>a[2]?changeMemory(CONFIG.updateAvailable,!0):changeMemory(CONFIG.updateAvailable,!1)}function updateAvailable(){$(function(){$("#updateDialog").dialog({height:410,width:700,draggable:!1,modal:!0,resizable:!1,dialogClass:"ui-dialog-osx"})}),$(function(){$("#update").click(function(){runUpdate(),$("#updateDialog").dialog("close")}),$("#dismiss").click(function(){$("#updateDialog").dialog("close")}),$("#neverAgain").click(function(){changeMemory(CONFIG.updateNotify,0),$("#updateDialog").dialog("close")})})}function runUpdate(){switch(GUI.operating_system){case"Windows":gui.Shell.openItem(process.cwd()+"\\update\\autoupdate-windows.exe"),win.close();break;case"MacOS":gui.Shell.openItem(global.__dirname+"/update/autoupdate-osx.app"),win.close();break;case"Linux":exec(process.cwd()+"/update/autoupdate-linux-x64.run",function(e,a){console.log(e),console.log(a.toString())}),win.close()}}var xml="https://cdn-docs.rcbenchmark.com/software-release/rcb-thrust-stands-01/update.xml",xmlhttp=new XMLHttpRequest,serVrsnArray,currVrsnArray,gui=require("nw.gui"),win=gui.Window.get(),exec=require("child_process").execFile;xmlhttp.onreadystatechange=function(){if(4==this.readyState&&200==this.status){var e=this.responseXML.documentElement.innerHTML;changeMemory(CONFIG.latest_version,String(e)),console.log("Website response: latest software version - "+String(e))}},xmlhttp.open("GET",xml,!0),xmlhttp.send();